package section1;
/*
 * 
 * 
	Sample Input
	2
	1 5
	10 20
	Sample Output
	6
	30
 * */

import java.util.Scanner;
public class PracticeII {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a,b,n;
		while(sc.hasNext()){
			n = sc.nextInt(); 
			for(int i=0; i<n; i++){
				a = sc.nextInt();
				b = sc.nextInt();
				System.out.println(a+b);
			}
		}
	}
}
